set1 = {1, 2, 3, 4}
set2 = {3, 4, 5, 6}
def set_operations(s1, s2):
    union = s1.union(s2)
    intersection = s1.intersection(s2)
    difference = s1.difference(s2)
    even_intersection = set()

    for element in intersection:
        if element % 2 == 0:
            even_intersection.add(element)

    return union, difference, even_intersection


union, diff, even_inter = set_operations(set1, set2)
print("并集：", union)
print("差集：", diff)
print("交集的偶数集合：", even_inter)